|
|
|
|
|
|
|
Figure 12.10
Data control usage. |
|
|
|
|
|
|
|
|
You can think of a recordset as an array of records that come from the database. A recordset allows you to move forward and backward through the records. A recordset is also referred to as a cursor. As you move through the recordset, it keeps track of which record youre in. You have the ability to move to the next record, to the previous record, and even to the first and last records. When you hit the first record in the recordset, a phantom record appears before this record. When you move before the first row and are positioned on this phantom record, youre at the beginning of file (BOF). When you hit the last record in the recordset, another phantom record appears after the last real record in the set. When you move past the last row and are positioned on this phantom record, youre at the end of file (EOF). Figure 12.11 shows a stylized view of a recordset. |
|
|
|
|
|
|
|
|
Figure 12.11
A recordset is an array of data. |
|
|
|
|
|